from django.db import models

# Create your models here.
class UserModel(models.Model):
    name = models.CharField(max_length=30)
    icon = models.CharField(max_length=30)

# 相册
class PhotoModel(models.Model):
    img = models.CharField(max_length=30,unique=True)
    user = models.ForeignKey(UserModel,on_delete=models.PROTECT)
